This program uses the OpenAI's DALL-E capacity to generate an image for any query based text given by the user as input. It generates the file and returns it's url to the user for displaying, and further saves the file in the user's local storage if prompted so.
- First obtain your OpenAI api key as well as the organization key from the OpenAI website.
- Replace the
openai_organization
andopenai.api_key
values by your own keys. - Execute the program
- Provide a query text as input when prompted
- The requisite generated image would be saved to your local storage.
- When prompted to open the file, you can choose to do so in order to identify it in your local storage.